<!--
  To change this license header, choose License Headers in Project Properties.
  To change this template file, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
    <head>
        <meta name="layout" content="frontend">
        <script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js"></script>
        <script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/localization/messages_zh_TW.js"></script>
    </head>
    <body>
        <div style="text-align:center;">
        <table border="2" class="month">
            <caption>
            <g:link action="index" params="[yearmonth: lastMonth]"><<</g:link>
            ${thisMonth}
            <g:link action="index" params="[yearmonth: nextMonth]">>></g:link>
            </caption>
            <tr><td>S</td><td>M</td><td>T</td><td>W</td><td>T</td><td>F</td><td>S</td></tr>
            ${calendar}
        </table>
        </div>
        <g:if test="${flash.message}">
            <div class="message" role="status">${flash.message}</div>
        </g:if>
         <div id="serials"></div>
         <div style="text-align:center">
             <g:link controller="calendar" action="index" class="btn btn-default btn-primary">回到本月</g:link>
         </div><br/>
</body>
</html>